@extends('admin.app')

@section('content')
    <div class="panel panel-default">
        <div class="panel-heading font-bold">
            改变投资人经纪人
        </div>
        <div class="panel-body">
            <form enctype="multipart/form-data" class="form-horizontal form-validation"
                  method="post" action="{{ admin_action('Business\OrganizationalUserManagementController@saveChangeAgent',[$org_id,$dept_no,$broker_id,$user->id]) }}">
                {{ csrf_field() }}
                <label class="text-danger">*将会修改该投资人的所属经纪人</label>
                <div class="line line-dashed b-b line-lg"></div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">投资人*</label>
                    <div class="col-lg-4">
                        <input type="text" class="form-control" disabled="disabled" value="{{ ((($user->userInfo->name??$user->username)??$user->email)??$user->phone_number) }}"
                               placeholder="用户名 手机 邮箱" data-rule-required="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">归属经纪人*</label>
                    <div class="col-lg-4">
                        <input type="text" class="form-control" name="gsjjrname" value="{{ old('gsjjrname') }}"
                               placeholder="用户名 手机 邮箱" data-rule-required="true">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg"></div>
                <div class="form-group">
                    <div class="col-lg-4 col-lg-offset-2">
                        <a href="{{ admin_action('Business\OrganizationalUserManagementController@userList',[$org_id,$dept_no,$broker_id]) }}"
                           class="btn btn-default">返&nbsp;回</a>
                        <button type="submit" class="btn btn-primary">修改经纪人</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection 